package cn.libinal.scloud.base.repository;

import cn.libinal.scloud.base.common.repository.BaseJpaRepository;
import cn.libinal.scloud.base.entity.User;

/**
 * 用户JPA接口
 *
 * @author libinal
 * created at 2018/11/4 15:47
 */
public interface UserRepository extends BaseJpaRepository<User, String> {

    /**
     * 根据用户名查询用户
     * @param username 用户名
     * @return User
     */
    User findByUsername(String username);
}
